<template>
	<page-wraper :safeAreaInsetBottom="false">
		<view v-html="text" style="padding: 10px;">
		</view>
	</page-wraper>
</template>

<script lang="ts" setup>
	import { ref } from 'vue';
	import { onLoad } from '@dcloudio/uni-app'

	const text = ref('');
	
	onLoad((query: any) => {
		uni.setNavigationBarTitle({
			title: query.title || '条款内容'
		});
		
		uni.$http.get(`system_config/content/${query.type}`).then(res => {
			text.value = res.data.data;
		});
	});
</script>

<style lang="scss" scoped>
	:deep(.page-wraper) {
		background: #f6f6f6;
	}
</style>